<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnShowingsIdInNoteEntityRelation extends AbstractMigration
{
    public function up()
    {
        $this->table('note_entity_relation')
            ->addColumn('scene', 'string', ['null' => false, 'default' => '', 'limit' => 20, 'comment' => '场次'])
            ->addColumn('task_is_start', 'enum', ['values' => 'yes,no,default', 'default' => 'default', 'comment' => '当前实体下的任务是否开始制作'])
            ->save();
    }

    public function down()
    {
        $this->table('note_entity_relation')
            ->removeColumn('scene')
            ->removeColumn('task_is_start')
            ->save();
    }
}
